<div class="edit">
    <form id="editForm" method="post">
        <div id="win"></div>
        <table class="infobox" width="100%" border="0" cellspacing="5px"
               cellpadding="1px">
            <tr>
                <td width="23%"><label>用户名：</label></td>
                <td width="77%"><input name="username" type="text" style="width:200px;" value="${(user.username)!''}"
                                       class="easyui-validatebox" autocomplete="off"/></td>
            </tr>
            <tr>
                <td width="23%"><label>密码：</label></td>
                <td width="77%"><input name="password" type="password" style="width:200px;" value="${(user.password)!''}"
                                       class="easyui-validatebox" autocomplete="off"/></td>
            </tr>
            <tr>
                <td><label>昵称：</label></td>
                <td><input name="nickname" type="text" style="width:200px;" class="easyui-validatebox" value="${(user.nickname)!''}"
                           autocomplete="off"/></td>
            </tr>
            <tr>
                <td><label>电话：</label></td>
                <td><input name="phone" type="text" style="width:200px;" class="easyui-validatebox" value="${(user.phone)!''}"
                           autocomplete="off"/></td>
            </tr>
            <tr>
                <td><label>邮箱：</label></td>
                <td><input name="email" type="text" style="width:200px;" class="easyui-validatebox" value="${(user.email)!''}"
                           autocomplete="off"/></td>
            </tr>
            <tr>
                <td><label>角色：</label></td>
                <td><input class="easyui-combobox" name="role" id="roleView" style="width:200px"
                           panelHeight="300px" value="${(user.role)!''}"
                           data-options="editable:false"></td>
            </tr>
        </table>
        <input hidden type="text" name="sellerId" value="${(user.sellerId)!''}">
    </form>
</div>
<script type="text/javascript">
    $("#roleView").combobox({
        url: '/common/getRole',
        valueField: 'id',
        textField: 'name'
    })
</script>